<html>
<head>
	<title>Compare i++ and ++i</title>
</head>
<body>
<script type="text/javascript">
var i =5;
var j;
j = (++i)+(++i)+(++i); //j=?
document.write("j = " + j);
j=(i++)+(i++)+(i++); //j=?
document.write("\nj = " + j);
</script>
</body>
</html>